package com.example.petproject.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 包名称：com.example.petproject.entity.vo
 * 类名称：commentListVO
 * 类描述：商品评论列表查询VO
 * 创建人：@author DrinkMore-HotWater
 * 创建时间：2024年01月10日 10:45
 **/
@Schema(name = "商品评论列表查询VO", description = "商品评论列表查询VO")
public class CommentListVO {
    @Schema(description = "评论ID")
    private Integer commentId;

    @Schema(description = "评论内容")
    private String content;
    @Schema(description = "评论星数0-5")
    private Integer star;
    @Schema(description = "用户名")
    private String userName;
    @Schema(description = "发表时间")
    private LocalDateTime addTime;
    @Schema(description = "评价图片列表")
    private List<String> imgList;


    public CommentListVO() {
    }

    public CommentListVO(Integer commentId, String content, Integer star, String userName, LocalDateTime addTime, List<String> imgList) {
        this.commentId = commentId;
        this.content = content;
        this.star = star;
        this.userName = userName;
        this.addTime = addTime;
        this.imgList = imgList;
    }

    /**
     * 获取
     * @return commentId
     */
    public Integer getCommentId() {
        return commentId;
    }

    /**
     * 设置
     * @param commentId
     */
    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    /**
     * 获取
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     * @return star
     */
    public Integer getStar() {
        return star;
    }

    /**
     * 设置
     * @param star
     */
    public void setStar(Integer star) {
        this.star = star;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return addTime
     */
    public LocalDateTime getAddTime() {
        return addTime;
    }

    /**
     * 设置
     * @param addTime
     */
    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    /**
     * 获取
     * @return imgList
     */
    public List<String> getImgList() {
        return imgList;
    }

    /**
     * 设置
     * @param imgList
     */
    public void setImgList(List<String> imgList) {
        this.imgList = imgList;
    }

    @Override
    public String toString() {
        return "commentListVO{commentId = " + commentId + ", content = " + content + ", star = " + star + ", userName = " + userName + ", addTime = " + addTime + ", imgList = " + imgList + "}";
    }
}
